package com.hzhc.enumBean;

/**
 * TimeDiffEnum
 *
 * @author huangp
 */
public enum TimeDiff {

    TIME(0, "timeDiff"),
    DAY(1, "日"),
    WEEK(2, "周"),
    MONTH(3, "月"),
    YEAR(4, "年");

    private Integer code;

    private String name;

    private TimeDiff(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
